<style lang="less" scoped>
.panel {
  margin-bottom: 10px;
  &-title {
    display: flex;
    padding: 10px;
    border-bottom: 0.1px solid #eaeaea;
    background: white;

    &__label {
      flex: 1;
      font-size: 16px;
      align-items: center;
    }
  }
  &-content {
    margin-bottom: 10px;
    background: white;

    &__item {
      display: flex;
      padding: 10px 10px 0 10px;
      font-size: 14px;
      &-label {
        color: #666;
        width: 80px;
      }
      &-value {
        flex: 1;
        padding-left: 15px;
        color: #333;
      }
    }
  }
}
.main-pic {
  width: 400px;
  height: 200px;
}
</style>

<template>
  <div class="panel">

    <!-- content -->
    <div class="panel-content">
      <div class="panel-content__item">
        <div class="panel-content__item-label">纳税人名称</div>
        <div class="panel-content__item-value">{{item.TaxpayerName||'-'}}</div>
        <div class="panel-content__item-right"></div>
      </div>
      <div class="panel-content__item">
        <div class="panel-content__item-label">纳税人识别号</div>
        <div class="panel-content__item-value">{{item.TaxpayerNumber||'-'}}</div>
        <div class="panel-content__item-right"></div>
      </div>
      <div class="panel-content__item">
        <div class="panel-content__item-label">组织机构代码</div>
        <div class="panel-content__item-value">{{item.OrgCode||'-'}}</div>
        <div class="panel-content__item-right"></div>
      </div>
      <div class="panel-content__item">
        <div class="panel-content__item-label">注册地址</div>
        <div class="panel-content__item-value">{{item.Address||'-'}}</div>
        <div class="panel-content__item-right"></div>
      </div>
    </div>
    <!-- content -->
    <div class="panel-content">
      <div class="panel-content__item">
        <div class="panel-content__item-label">法定代表人或负责人</div>
        <div class="panel-content__item-value">{{item.OperInfo.OperName||'-'}}</div>
        <div class="panel-content__item-right"></div>
      </div>
      <div class="panel-content__item">
        <div class="panel-content__item-label">性别</div>
        <div class="panel-content__item-value">{{item.OperInfo.OperGender||'-'}}</div>
        <div class="panel-content__item-right"></div>
      </div>
      <div class="panel-content__item">
        <div class="panel-content__item-label">证件名称</div>
        <div class="panel-content__item-value">{{item.OperInfo.OperCerType||'-'}}</div>
        <div class="panel-content__item-right"></div>
      </div>
      <div class="panel-content__item">
        <div class="panel-content__item-label">证件号码</div>
        <div class="panel-content__item-value">{{item.OperInfo.OperCerNo||'-'}}</div>
        <div class="panel-content__item-right"></div>
      </div>
    </div>
    <!-- content -->
    <div class="panel-content">
      <div class="panel-content__item">
        <div class="panel-content__item-label">负有直接责任的财务负责人</div>
        <div class="panel-content__item-value">{{item.FinanceChiefInfo.FinanceChiefName||'-'}}</div>
        <div class="panel-content__item-right"></div>
      </div>
      <div class="panel-content__item">
        <div class="panel-content__item-label">性别</div>
        <div class="panel-content__item-value">{{item.FinanceChiefInfo.FinanceChiefGender||'-'}}</div>
        <div class="panel-content__item-right"></div>
      </div>
      <div class="panel-content__item">
        <div class="panel-content__item-label">证件名称</div>
        <div class="panel-content__item-value">{{item.FinanceChiefInfo.FinanceChiefCerType||'-'}}</div>
        <div class="panel-content__item-right"></div>
      </div>
      <div class="panel-content__item">
        <div class="panel-content__item-label">证件号</div>
        <div class="panel-content__item-value">{{item.FinanceChiefInfo.FinanceChiefCerNo||'-'}}</div>
        <div class="panel-content__item-right"></div>
      </div>
    </div>
    <!-- content -->
    <div class="panel-content">
      <div class="panel-content__item">
        <div class="panel-content__item-label">负有直接责任的中介机构信息及其从业人员信息</div>
        <div class="panel-content__item-value">{{item.AgencyInfo.AgencyPersonName||'-'}}</div>
        <div class="panel-content__item-right"></div>
      </div>
      <div class="panel-content__item">
        <div class="panel-content__item-label">性别</div>
        <div class="panel-content__item-value">{{item.AgencyInfo.AgencyPersonGender||'-'}}</div>
        <div class="panel-content__item-right"></div>
      </div>
      <div class="panel-content__item">
        <div class="panel-content__item-label">证件名称</div>
        <div class="panel-content__item-value">{{item.AgencyInfo.AgencyPersonCerType||'-'}}</div>
        <div class="panel-content__item-right"></div>
      </div>
      <div class="panel-content__item">
        <div class="panel-content__item-label">证件号</div>
        <div class="panel-content__item-value">{{item.AgencyInfo.AgencyPersonCerNo||'-'}}</div>
        <div class="panel-content__item-right"></div>
      </div>
    </div>
    <!-- content -->
    <div class="panel-content">
      <div class="panel-content__item">
        <div class="panel-content__item-label">发布日期</div>
        <div class="panel-content__item-value">{{item.PublishTime||'-'}}</div>
        <div class="panel-content__item-right"></div>
      </div>
      <div class="panel-content__item">
        <div class="panel-content__item-label">所属税务机关</div>
        <div class="panel-content__item-value">{{item.TaxGov||'-'}}</div>
        <div class="panel-content__item-right"></div>
      </div>
      <div class="panel-content__item">
        <div class="panel-content__item-label">案件性质</div>
        <div class="panel-content__item-value">{{item.CaseNature||'-'}}</div>
        <div class="panel-content__item-right"></div>
      </div>
      <div class="panel-content__item">
        <div class="panel-content__item-label">主要违法事实、相关违法依据及税务处理处罚情况</div>
        <div class="panel-content__item-value">{{item.IllegalContent||'-'}}</div>
        <div class="panel-content__item-right"></div>
      </div>
    </div>

  </div>
</template>
<script>
export default {
  data() {
    return {
      item: {
        // Addr: '济南市槐荫区美里湖开发区新沙北路14号',
        // Balance: 1017103.72,
        // Category: '',
        // CompanyName: '山东存德医药有限公司',
        // Id: '0afb65f13b20ffc42fb63619bc71fdbb',
        // IdNo: '370802******061',
        // IdentifyNo: '370104780770419',
        // IssuedBy: '济南市槐荫国家税务局税源管理二科',
        // KeyNo: 'c648024d7fd5b6db5447bb7b77807fe9',
        // NewBal: 0,
        // Oper: {
        //   CompanyCount: 2,
        //   HasImage: false,
        //   ImageUrl: '',
        //   KeyNo: 'p44274929533f26b8d87fd16c9e0d8ed',
        //   Name: '孙傲波',
        //   OperType: 1,
        //   Org: 2
        // },
        // PublishDate: '',
        // Type: ''
      }
    };
  },

  onShow() {
    this.getInfos();
  },
  methods: {
    async getInfos() {
      const url = '/xcx/getIllegalDetailById';
      const params = {
        illegalId: this.$route.query.id
      };
      const res = await this.$http.get(url, params);
      if (res.status != 200) {
        wx.showToast({
          title: res.message || '获取失败！',
          icon: 'none',
          mask: true
        });
        return;
      }
      this.item = res.result;
    }
  }
};
</script>
